﻿CREATE TRIGGER Governorates_Tracking_Delete
ON [dbo].[Governorates] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.Governorates_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.Governorates_Tracking s JOIN DELETED i
    ON s.GovernorateID = i.GovernorateID
END














